.class public Lcom/xingbook/anima/g;
.super Landroid/view/animation/Animation;


# instance fields
.field private a:I

.field private b:I

.field private c:F

.field private d:F

.field private e:F

.field private f:F

.field private g:F

.field private h:F


# direct methods
.method public constructor <init>([Lcom/xingbook/anima/d;)V
    .locals 3

    const/4 v2, 0x1

    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-direct {p0}, Landroid/view/animation/Animation;-><init>()V

    iput v1, p0, Lcom/xingbook/anima/g;->a:I

    iput v1, p0, Lcom/xingbook/anima/g;->b:I

    iput v0, p0, Lcom/xingbook/anima/g;->c:F

    iput v0, p0, Lcom/xingbook/anima/g;->d:F

    iput v1, p0, Lcom/xingbook/anima/g;->a:I

    iput v1, p0, Lcom/xingbook/anima/g;->b:I

    aget-object v0, p1, v1

    iget v0, v0, Lcom/xingbook/anima/d;->a:F

    iput v0, p0, Lcom/xingbook/anima/g;->e:F

    aget-object v0, p1, v1

    iget v0, v0, Lcom/xingbook/anima/d;->b:F

    iput v0, p0, Lcom/xingbook/anima/g;->f:F

    aget-object v0, p1, v2

    iget v0, v0, Lcom/xingbook/anima/d;->a:F

    iput v0, p0, Lcom/xingbook/anima/g;->c:F

    aget-object v0, p1, v2

    iget v0, v0, Lcom/xingbook/anima/d;->b:F

    iput v0, p0, Lcom/xingbook/anima/g;->d:F

    return-void
.end method


# virtual methods
.method protected applyTransformation(FLandroid/view/animation/Transformation;)V
    .locals 9

    const/4 v4, 0x0

    const-wide v0, 0x401921fb54442d18L

    float-to-double v2, p1

    mul-double/2addr v0, v2

    double-to-float v2, v0

    iget v1, p0, Lcom/xingbook/anima/g;->g:F

    iget v0, p0, Lcom/xingbook/anima/g;->h:F

    iget v3, p0, Lcom/xingbook/anima/g;->g:F

    cmpl-float v3, v3, v4

    if-nez v3, :cond_0

    iget v3, p0, Lcom/xingbook/anima/g;->h:F

    cmpl-float v3, v3, v4

    if-eqz v3, :cond_1

    :cond_0
    iget v0, p0, Lcom/xingbook/anima/g;->e:F

    iget v1, p0, Lcom/xingbook/anima/g;->c:F

    sub-float/2addr v0, v1

    float-to-double v0, v0

    float-to-double v3, v2

    invoke-static {v3, v4}, Ljava/lang/Math;->cos(D)D

    move-result-wide v3

    mul-double/2addr v0, v3

    iget v3, p0, Lcom/xingbook/anima/g;->f:F

    iget v4, p0, Lcom/xingbook/anima/g;->d:F

    sub-float/2addr v3, v4

    float-to-double v3, v3

    float-to-double v5, v2

    invoke-static {v5, v6}, Ljava/lang/Math;->sin(D)D

    move-result-wide v5

    mul-double/2addr v3, v5

    add-double/2addr v0, v3

    iget v3, p0, Lcom/xingbook/anima/g;->c:F

    float-to-double v3, v3

    add-double/2addr v0, v3

    double-to-float v0, v0

    iget v1, p0, Lcom/xingbook/anima/g;->e:F

    sub-float v1, v0, v1

    iget v0, p0, Lcom/xingbook/anima/g;->e:F

    iget v3, p0, Lcom/xingbook/anima/g;->c:F

    sub-float/2addr v0, v3

    neg-float v0, v0

    float-to-double v3, v0

    float-to-double v5, v2

    invoke-static {v5, v6}, Ljava/lang/Math;->sin(D)D

    move-result-wide v5

    mul-double/2addr v3, v5

    iget v0, p0, Lcom/xingbook/anima/g;->f:F

    iget v5, p0, Lcom/xingbook/anima/g;->d:F

    sub-float/2addr v0, v5

    float-to-double v5, v0

    float-to-double v7, v2

    invoke-static {v7, v8}, Ljava/lang/Math;->cos(D)D

    move-result-wide v7

    mul-double/2addr v5, v7

    add-double v2, v3, v5

    iget v0, p0, Lcom/xingbook/anima/g;->d:F

    float-to-double v4, v0

    add-double/2addr v2, v4

    double-to-float v0, v2

    iget v2, p0, Lcom/xingbook/anima/g;->f:F

    sub-float/2addr v0, v2

    :cond_1
    invoke-virtual {p2}, Landroid/view/animation/Transformation;->getMatrix()Landroid/graphics/Matrix;

    move-result-object v2

    invoke-virtual {v2, v1, v0}, Landroid/graphics/Matrix;->setTranslate(FF)V

    return-void
.end method

.method public initialize(IIII)V
    .locals 2

    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/animation/Animation;->initialize(IIII)V

    iget v0, p0, Lcom/xingbook/anima/g;->a:I

    iget v1, p0, Lcom/xingbook/anima/g;->c:F

    invoke-virtual {p0, v0, v1, p1, p3}, Lcom/xingbook/anima/g;->resolveSize(IFII)F

    move-result v0

    iput v0, p0, Lcom/xingbook/anima/g;->g:F

    iget v0, p0, Lcom/xingbook/anima/g;->b:I

    iget v1, p0, Lcom/xingbook/anima/g;->d:F

    invoke-virtual {p0, v0, v1, p2, p4}, Lcom/xingbook/anima/g;->resolveSize(IFII)F

    move-result v0

    iput v0, p0, Lcom/xingbook/anima/g;->h:F

    return-void
.end method
